export interface PermissionModel {
  id?: string;
  // gmtCreate: '2019-11-15 17:13:06';
  // gmtModified: '2020-09-25 13:47:54';
  // deleted: false;
  pid?: string;
  name: string;
  code?: string;
  // toCode: null;
  type: 1 | 2;
  // status: null;
  level: PermissionLevelModel;
  children?: PermissionListModel;
  select?: boolean;
}

export type PermissionLevelModel = 1 | 2 | 3 | 4;

export type PermissionListModel = PermissionModel[];

export interface GetPermissionListResponseModel {
  children: PermissionListModel;
}
